<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
		<title>志愿填报</title>
		<link href="css/style.css" rel="stylesheet" type="text/css">
		<link rel="stylesheet" type="text/css" href="css/demo.css">
	
	    <link rel="stylesheet" href="css/icheck-bootstrap.css">
	   	<link href="http://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
	   	<link href="css/styleg.css" rel="stylesheet" type="text/css" />

<script type='text/javascript' src="js/jquery.min.js"></script>
<script type='text/javascript' src="js/jquery.selectlayer.js"></script>
<script type="text/javascript"> 
$(document).ready(function(){
	var QS_city=new Array() ;
	OpenCategoryLayer(
		"#district_cn",
		"#sel_district",
		"#district_cn",
		"#citycategory",
		QS_city,
	14);
});
</script>
	</head>
	<body>
	  <div id="warp">
	  	 <h1>中兴教育</h1>
	  	<!--<div class="deful">
	  		<h5>选择高考省份</h5>
	  		
	  		<div class="kk clearfix">
	  			<div class="kkl fl"><img src="img/map.jpg"></div>
	  			<select name="" form="" class="lab fl">
   <option value="山东省">山东省</option>
   <option value="山西省">山西省</option>
   <option value="陕西省">陕西省</option>
  
</select> </div>  -->


	 <form action="information.action" method="post" id="form1" >
	  		<h5>选择科目</h5>
	  		  <div class="km">
	    	<ul class="clearfix">
	 <li><div class="radio icheck-primary"><input type="radio" id="primary1" name="property" value="1"><label for="primary1">文科</label></div></li> 

      <li><div class="radio icheck-primary"><input type="radio" checked="" id="primary2" name="property"  value="2"><label for="primary2">理科</label></div></li>

</ul>
</div>


	  		<h5>高考成绩</h5>
	<div class="kka clearfix">
		<div class="ll fl"><span style="color: #ff0000; font-weight: bold;">*</span>高考分数</div>
		<div class="mm fl"><input class="input_score" placeholder="输入高考分数" value="" type="text " name="score" id="score"></div>
		
	</div>
	<div class="kka clearfix">
		<div class="ll fl" style="padding-left: 5%;">意向专业</div>
		<div class="mm fl">
			
			<div>

	<input name="district_cn"  id="district_cn" type="text" value="请选择专业大类"  readonly="true" class="sltinput" />
	<input name="citycategory" id="citycategory" type="hidden" value="" />
	
	<div style="display:none" id="sel_district">
		<div class="OpenFloatBoxBg"></div>
		<div class="OpenFloatBox">
			<div class="title">
				<h4>请选择专业大类</h4>
				<div class="DialogClose" title="关闭"></div>
			</div>
			<div class="tip">可多选，最多选择8项</div>
			<div class="content">
				<div class="txt">
					<c:forEach items="${list }" var="Major">
						<div class="item" id="${Major.cCode }">
							<label title="${Major.cName }" class="titem"><input  id="cCode"  name="cCode"  type="checkbox" value="${Major.cCode }"  title="${Major.cName }" class="b" />${Major.cName }</label>
							<div class="sitem"></div>
						</div>
					</c:forEach>
					<div class="clear"></div>
				</div>
				<div class="txt">
					<div class="selecteditem"></div>
				</div>
				<div class="txt">
					<div align="center"><input type="button"  class="but80 Set" value="确定" /></div>
				</div>
			</div>
		</div>
	</div>
	
</div>		
		</div>
		<div class="rr fr"></div>
		
	</div>
	
	<div class="btn_school">
              <button type="button" class="btn_form" id="" onclick="goSubmit()">大数据精准分析</button>
            </div>
	  	</div>
	</form>
	<script type="text/javascript">
	function goSubmit(){
		var score  = $("#score").val();
		if(score===null || score===""){
			alert("成绩不能为空");
			return false;
		}else {
		if(score<0||score>750){
			alert("请输入有效的成绩");
			return false;
		}
		}
		
		var len = $("#cCode").length;
		if($("input[type='checkbox']:checked").length<3){
			alert("请至少选择3个专业类别");
	        return false;
		}
		$("#form1").submit();
	
	}
	</script>
	
</body>
</html>
